<include file="Base/header" />

<form action="{:U()}" method="post" class="form-horizontal js-ajax-forms edit-form" enctype="multipart/form-data">
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table1">
        <tr>
            <th width="120">上一级</th>
            <td>
            	<select name="post[pid]" id="">
            		<option value="0">根目录</option>
            		{:get_cate_select(false,$info[pid])}
            	</select>
            </td>
        </tr>
        <tr>
            <th width="120">名称</th>
            <td><input class="input" type="text" size="40" name="post[name]" value='{$info[name]}' /></td>
        </tr>
        <input type="hidden" name='post[code]' value='{$info[code]}' />
        <input type="hidden" name='post[type]' value='p' />
        <input type="hidden" name='post[lang]' value='zh-cn' />
        <input type="hidden" name='id' value='{$_GET[id]}' />
    </table>
<div class="commonBtnArea">
    <button class="btn js-ajax-submit"  type='submit'>提交</button>
    <a href="{:U('index')}" class="btn" >返回</a>
</div>
</form>

                

<include file="Base/footer" />
<script type="text/javascript">

 validateForm({
      rule:{
  		'post[name]' : {required : 1},
  		},
      message:{
	'post[name]' : {required : '请输入名称'},
	}
 },"{:U('index')}")
 
    
 </script>
</body>
</html>